package antidestiny.java2dex;

import android.content.Context;
import android.os.Environment;

/**
 * Created by Hero on 2016/6/25.
 */
public class Jing {
    public final static String COMPILER_PREFERENCE="compiler preference";
    public final static String WORK_PREFERENCES="work activity preference";


    public final static String PREF_LIB_TEXT="leb text",
    PREF_SOURCE_TEXT="source text",
    PREF_OUTPUT_TEXT="output text";

    public final static String PREF_OOPEN_FILES ="open files";

    public final static String DEX_FILE="dex file";
    public final static String MAIN_CLASS="main class";

    public final static String PROJECT_POSTFIX=".pro";

    public final static int TYPE_EMPTY_FILE=0,TYPE_CLASS_FILE=1,TYPE_JAVA_FILE=2,TYPE_DIR=3;
    public static final String FILE_TYPES[]=new String[]{"",".class",".java",""};

    public final static int RESULT_OK=1,UNKOWN_ERROR=0,FILE_EXISTED=-1,PARENT_DIR_NOT_EXIST=-2,ILLEGAL_CHAR=-3;

    public final static char DIFFRENT_FILE_SEPRATOR=':';

    static public String getRtJarPath(Context c){
        return c.getFilesDir()+"/rt.jar";
    }
    public static String getWorkSpace(){
        return Environment.getExternalStorageDirectory().getAbsolutePath()+"/WorkSpace";
    }
}
